import { useRef } from "react";
import Button from "@/components/Button";

export default function DomDemoPage() {
  const el = useRef<HTMLDivElement>(null);

  const handleClick = () => {
    if (el.current) {
      alert(el.current.innerHTML);
    }
  };

  return (
    <div>
      <div ref={el}>
        Re<strong>f</strong>
      </div>
      <Button onClick={handleClick}>Show InnerHTML</Button>
    </div>
  );
}
